'use strict';

angular.module('blkAdm', ['blkAdmService'])
    .config(['$routeProvider', function($routeProvider) {
        $routeProvider
            .when('/',
                {templateUrl: 'templates/home.html'})

            .when('/:entity/table',
                {templateUrl: 'templates/entityTable.html', controller: EntityTableCtrl})
            .when('/:entity/add',
                {templateUrl: 'templates/entityForm.html', controller: EntityAddCtrl})
            .when('/:entity/edit/:id',
                {templateUrl: 'templates/entityForm.html', controller: EntityEditCtrl})

            .otherwise({redirectTo: '/'});
    }]);